#include <iostream>
#include "math.h"
using namespace std;
int main() {
  int a, n;
  cin >> a >> n;
  cout << (int)pow(a, n) << endl;
}